From 011890ad930a7696111b9004924657e7301443ce Mon Sep 17 00:00:00 2001 From: Pawel Dembicki Date: Thu, 2 Oct 2025 15:49:17 +0200 Subject: [PATCH] mediatek: filogic: add support for Kebidumei AX3000-U22 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Kebidumei AX3000-U22 is one of many clones of the same range extender that can be found on Aliexpress or other Chinese portals. The easiest way to identify this model is by searching for "AX3000 Repeater" and picking the device that looks like mine [0]. Specification: - SoC: MediaTek MT7981B (1.3 GHz) - RAM: 256 MB - Flash: 16 MB SPI NOR - Ports: 1 x 1 GbE - Antenna: 6 (2 fake) - WiFi: MediaTek dual-band WiFi 6 - 2.4 GHz: b/g/n/ax, MIMO 2x2 - 5 GHz: a/n/ac/ax, MIMO 2x2 - Buttons: Reset & WPS - LEDs: Ethernet (green), Status (red, green, blue) - Power: 110–240 V AC (internal PSU, board uses 12 V DC) - Serial: unmarked connector on PCB [1: Vcc, 2: RX, 3: TX, 4: GND] Install via OEM web UI: 1. Use reset button to perform factory reset. 2. Connect PC to LAN port and obtain DHCP address. 3. Upload the sysupgrade image via OEM firmware upgrade page, e.g. http://192.168.18.1/upgrade.html 4. After reboot, hold reset button to clear leftover vendor config. Install via serial: 1. Connect serial console (115200 8N1). 2. Enter the console. 3. Backup mtd4 partition if you want to restore OEM FW later. 4. Download image. 5. Run 'sysupgrade -n'. Revert to stock: 1. Run sysupgrade without keeping config using mtd4 backup. [0] https://openwrt.org/_media/media/kebidumei_ax3000-u22.png Signed-off-by: Pawel Dembicki Link: https://github.com/openwrt/openwrt/pull/20287 Signed-off-by: Hauke Mehrtens --- .../dts/mt7981b-kebidumei-ax3000-u22.dts | 192 ++++++++++++++++++ .../filogic/base-files/etc/board.d/01_leds | 1 + .../filogic/base-files/etc/board.d/02_network | 1 + .../base-files/lib/upgrade/platform.sh | 1 + target/linux/mediatek/image/filogic.mk | 15 ++ 5 files changed, 210 insertions(+) create mode 100644 target/linux/mediatek/dts/mt7981b-kebidumei-ax3000-u22.dts diff --git a/target/linux/mediatek/dts/mt7981b-kebidumei-ax3000-u22.dts b/target/linux/mediatek/dts/mt7981b-kebidumei-ax3000-u22.dts new file mode 100644 index 0000000000..63a87bb0b7 --- /dev/null +++ b/target/linux/mediatek/dts/mt7981b-kebidumei-ax3000-u22.dts @@ -0,0 +1,192 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +/dts-v1/; + +#include "mt7981b.dtsi" + +/ { + model = "Kebidumei AX3000-U22"; + compatible = "kebidumei,ax3000-u22", "mediatek,mt7981b"; + + aliases { + label-mac-device = &gmac1; + + led-boot = &led_status_green; + led-failsafe = &led_status_red; + led-running = &led_status_green; + led-upgrade = &led_status_green; + + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@40000000 { + reg = <0 0x40000000 0 0x10000000>; + device_type = "memory"; + }; + + gpio-keys { + compatible = "gpio-keys"; + reset { + label = "reset"; + linux,code = ; + gpios = <&pio 1 GPIO_ACTIVE_LOW>; + }; + wps { + label = "wps"; + linux,code = ; + gpios = <&pio 0 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + function = LED_FUNCTION_LAN; + color = ; + gpios = <&pio 6 GPIO_ACTIVE_LOW>; + }; + + led_status_red: led-1 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 8 GPIO_ACTIVE_LOW>; + }; + + led-2 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 35 GPIO_ACTIVE_LOW>; + }; + + led_status_green: led-3 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 34 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&uart0 { + status = "okay"; +}; + +&watchdog { + status = "okay"; +}; + +ð { + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + + status = "okay"; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "gmii"; + phy-handle = <&int_gbe_phy>; + nvmem-cells = <&macaddr_factory_e000 0>; + nvmem-cell-names = "mac-address"; + }; +}; + +&spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_flash_pins>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + + spi-max-frequency = <52000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bl2"; + reg = <0x00000 0x40000>; + read-only; + }; + + partition@40000 { + label = "u-boot-env"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "factory"; + reg = <0x50000 0xb0000>; + read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x1000>; + }; + + macaddr_factory_e000: macaddr@e000 { + compatible = "mac-base"; + reg = <0xe000 0x6>; + #nvmem-cell-cells = <1>; + }; + + }; + }; + + partition@100000 { + label = "fip"; + reg = <0x100000 0x80000>; + read-only; + }; + + partition@180000 { + compatible = "denx,fit"; + label = "firmware"; + reg = <0x180000 0xe80000>; + }; + }; + }; +}; + +&pio { + spi2_flash_pins: spi2-pins { + mux { + function = "spi"; + groups = "spi2", "spi2_wp_hold"; + }; + + conf-pu { + pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; + drive-strength = ; + bias-pull-up = ; + }; + + conf-pd { + pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; + drive-strength = ; + bias-pull-down = ; + }; + }; +}; + +&wifi { + status = "okay"; + + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; +}; diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds index e40e4166cb..a117c8ba7c 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds @@ -58,6 +58,7 @@ bananapi,bpi-r4-lite) ucidef_set_led_netdev "sfp0" "sfp0" "green:sfp" "sfp0" "link tx rx" ;; cudy,re3000-v1|\ +kebidumei,ax3000-u22|\ wavlink,wl-wn573hx3) ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" "link tx rx" ;; diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network index 70a4d51588..70ac202855 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network @@ -107,6 +107,7 @@ mediatek_setup_interfaces() cudy,ap3000outdoor-v1|\ cudy,ap3000-v1|\ cudy,re3000-v1|\ + kebidumei,ax3000-u22|\ netgear,eax17|\ netgear,wax220|\ openfi,6c|\ diff --git a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh index e4c60ce0d4..a320c67987 100755 --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh @@ -157,6 +157,7 @@ platform_do_upgrade() { ;; cudy,re3000-v1|\ cudy,wr3000-v1|\ + kebidumei,ax3000-u22|\ totolink,x6000r|\ wavlink,wl-wn573hx3|\ widelantech,wap430x|\ diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index f42514e6c3..fc4839bea1 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -1616,6 +1616,21 @@ define Device/jdcloud_re-cp-03 endef TARGET_DEVICES += jdcloud_re-cp-03 +define Device/kebidumei_ax3000-u22 + DEVICE_VENDOR := Kebidumei + DEVICE_MODEL := AX3000-U22 + DEVICE_DTS := mt7981b-kebidumei-ax3000-u22 + DEVICE_DTS_DIR := ../dts + DEVICE_DTS_LOADADDR := 0x43f00000 + IMAGE_SIZE := 14848k + KERNEL_LOADADDR := 0x44000000 + KERNEL := kernel-bin | lzma | \ + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb + DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware + SUPPORTED_DEVICES += mediatek,mt7981-spim-nor-rfb +endef +TARGET_DEVICES += kebidumei_ax3000-u22 + define Device/keenetic_kn-1812-common DEVICE_DTS_DIR := ../dts DEVICE_PACKAGES := kmod-mt7992-firmware kmod-usb3 \ -- 2.30.2